package com.acc.mobileappr.entities;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by IntelliJ IDEA.
 * User: user
 * Date: Apr 20, 2011
 * Time: 10:54:40 AM
 * To change this template use File | Settings | File Templates.
 */
@javax.persistence.Table(name = "MST_M_APPR_ADMIN", schema = "ACC_BBMX")
@Entity
public class MstMApprAdminEntity {
    private String adminId;

    @javax.persistence.Column(name = "ADMIN_ID")
    @Id
    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    private String pwdAdmin;

    @javax.persistence.Column(name = "PWD_ADMIN")
    @Basic
    public String getPwdAdmin() {
        return pwdAdmin;
    }

    public void setPwdAdmin(String pwdAdmin) {
        this.pwdAdmin = pwdAdmin;
    }

    private String pertanyaan;

    @javax.persistence.Column(name = "PERTANYAAN")
    @Basic
    public String getPertanyaan() {
        return pertanyaan;
    }

    public void setPertanyaan(String pertanyaan) {
        this.pertanyaan = pertanyaan;
    }

    private String jawaban;

    @javax.persistence.Column(name = "JAWABAN")
    @Basic
    public String getJawaban() {
        return jawaban;
    }

    public void setJawaban(String jawaban) {
        this.jawaban = jawaban;
    }

    private String idAdmin;

    @javax.persistence.Column(name = "ID_ADMIN")
    @Basic
    public String getIdAdmin() {
        return idAdmin;
    }

    public void setIdAdmin(String idAdmin) {
        this.idAdmin = idAdmin;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MstMApprAdminEntity that = (MstMApprAdminEntity) o;

        if (adminId != null ? !adminId.equals(that.adminId) : that.adminId != null) return false;
        if (idAdmin != null ? !idAdmin.equals(that.idAdmin) : that.idAdmin != null) return false;
        if (jawaban != null ? !jawaban.equals(that.jawaban) : that.jawaban != null) return false;
        if (pertanyaan != null ? !pertanyaan.equals(that.pertanyaan) : that.pertanyaan != null) return false;
        if (pwdAdmin != null ? !pwdAdmin.equals(that.pwdAdmin) : that.pwdAdmin != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = adminId != null ? adminId.hashCode() : 0;
        result = 31 * result + (pwdAdmin != null ? pwdAdmin.hashCode() : 0);
        result = 31 * result + (pertanyaan != null ? pertanyaan.hashCode() : 0);
        result = 31 * result + (jawaban != null ? jawaban.hashCode() : 0);
        result = 31 * result + (idAdmin != null ? idAdmin.hashCode() : 0);
        return result;
    }
}
